<%-- 
    Document   : roomadd
    Created on : 04-12-2009, 08:54:34
    Author     : leaf
--%>
<%@taglib uri="http://java.fckeditor.net" prefix="FCK" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page contentType="text/html; charset=utf-8"%>
<p class="title">THÊM MỚI ROOM </p>
<p class="message">${message}</p>
<hr/>
<form name="form1" action="RoomAction" method="post" onsubmit="getdate(this.when);">

    <table width="100%">
        <tr>
            <td>Tên: </td>
            <td>
                <input size="70%" type="text" name="name" value="${room.name}"/>
                <input type="hidden" name="id" value="${room.id}"/>
            </td>
        </tr>
        <tr>
            <td>Ảnh đại diện: </td>
            <td>
                
            <input type="text" name="image" id="image" size="60%" value="${room.image}"/>
            <button type="button" onclick="BrowseServer('image');">Chọn ảnh</button>
                
            </td>
        </tr>
        
        <tr>
            <td >Mô tả tóm tắt: </td>
            <td >
                <textarea name="price" cols="54" rows="2" >${room.price}</textarea>
            </td>
        </tr>
        <tr>
            <td >Mô tả chi tiết: </td>
            <td >
                <FCK:editor value="${page.content}" instanceName="content" width="100%" height="400">

                </FCK:editor>
            </td>
        </tr>
        <tr>
            <td >Ký hiệu phòng: </td>
            <td >
                <input type="text" name="alias" value="${room.alias}"/>
            </td>
        </tr>
        <tr>
            <td >Thứ tự hiển thị: </td>
            <td >
                <input type="text" name="position" value="${room.position}"/>
            </td>
        </tr>
        <tr>
            <td >Trạng thái: </td>
            <td >
                <select name="status">
                    <option value="0">Hiển thị</option>
                    <option value="1">Được phép đặt phòng</option>
                    <option value="2">Khác</option>
                </select>
            </td>
        </tr>
        <tr>
            <td >Ngày tháng: </td>
            <td>                
                <input maxlength="10" type="text" onfocus="getdate('when');" name="when" value="${room.when}"/>
                <img src="images/cal.gif" alt="Chọn ngày tháng" onclick="displayDatePicker('when', false, 'ymd', '-');">
            </td>
        </tr>
        <tr>
            <td colspan="2" align="right">
                <input type="submit" value="Add" name="act">
                <input type="reset" value="Reset">
                <input type="submit" value="Cancel" name="act">
            </td>
        </tr>

    </table>
</form>

